package com.example.coursehub.repository;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.example.coursehub.entity.FavoriteQuestionBank;

public interface FavoriteQuestionBankRepository
        extends JpaRepository<FavoriteQuestionBank, String>, JpaSpecificationExecutor<FavoriteQuestionBank> {
    Optional<FavoriteQuestionBank> findByUser_UserIdAndCourse_CourseId(String userId, String courseId);
}